<div id="new_project" class='new_or_edit'>
  <div class='form'>
  <%  remote_form_for @project,
        :update => :edit,
        :url => projects_url,
        :loading => short_loader(:new_project,:height => 166),
        :html => {
          :id => :new_project_form
        } do |f| %>
    <dl>
      <dt>项目名称：</dt>
      <dd><%= f.text_field :name, :size => 90 %></dd>
    </dl>
    <dl>
      <dt class='l'>合同签订于：</dt>
      <dd>
        <%= calendar_field( :project,
                :signed_on , {
                  :class => 'date'
                },{
                  :firstDay => 1,
                  :step => 1,
                  :showOthers => true
                }) %>
      </dd>
    </dl>
    <dl>
      <dt class='l'>备注：</dt>
      <dd><%= f.text_area :remark %></dd>
    </dl>
  <% end %>
  </div>
  <div class='buttons'>
    <%= link_to_function '保存','$("new_project_form").onsubmit()', :class => 'save button' %>
    <%= link_to_function '返回','Effect.BlindUp("new_project")', :class => 'go_back button' %>
  </div>
</div>